<template>
  <div v-loading="loading" class="card content-box">
    <iframe :src="url" frameborder="no" style="width: 100%; height: 100%" scrolling="auto" class="full-iframe" />
  </div>
</template>

<script setup lang="ts">
import { propTypes } from "@/utils/propTypes";

const props = defineProps({
  src: propTypes.string.isRequired
});
const loading = ref(true);
const url = computed(() => props.src);
onMounted(() => {
  setTimeout(() => {
    loading.value = false;
  }, 300);
});
</script>
<style lang="scss" scoped>
.full-iframe {
  width: 100%;
  height: 100%;
}
</style>
